package com.ljf.app2;

import com.ljf.framework.security.LjfSecurityManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * 说明：安全配置，自定义用户密码校验方式
 *
 * @Auther: lijinfeng
 * @Date: 2022/12/12
 */
@Configuration
public class LjfAuthConfig {


    // LJF-Auth 定制化配置 配置用户名密码验证方式
    @Autowired
    public void setCheckUserHandler() {
        LjfSecurityManager.getConfig().setCheckUserHandler(((username, password)-> 1l));
    }
}
